import { http } from '@/http'

export const api = {
  getPage: '/cms/api/homeSiteResource/getPage',
  saveOrUpdate: '/cms/api/homeSiteResource/saveOrUpdate',
  getById: '/cms/api/homeSiteResource/getById'
}
// 获取现场资源分页
export const getResourcePage = (data) => {
  return http.post(api.getPage, data)
}
//编辑现场资源
export const saveOrUpdateResource = (data) => {
  return http.post(api.saveOrUpdate, data)
}
// 获取现场资源详情     /cms/api/homeSiteResource/getById?id=972843518523392
export const getResourceDetail = (id) => {
  return http.get(api.getById + '?id=' + id)
}
